﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.EquipmentManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.EquipmentManagement.EquipmentSerialVMs
{
    public partial class EquipmentSerialBatchVM : BaseBatchVM<EquipmentSerial, EquipmentSerial_BatchEdit>
    {
        public EquipmentSerialBatchVM()
        {
            ListVM = new EquipmentSerialListVM();
            LinkedVM = new EquipmentSerial_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class EquipmentSerial_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._EquipmentSerial._Equipment")]
        public long? EquipmentId { get; set; }
        [Display(Name = "_Model._EquipmentSerial._Description")]
        public string Description { get; set; }
        [Display(Name = "_Model._EquipmentSerial._BaudRate")]
        public int? BaudRate { get; set; }
        [Display(Name = "_Model._EquipmentSerial._DataLength")]
        public int? DataLength { get; set; }
        [Display(Name = "_Model._EquipmentSerial._StopBit")]
        public decimal? StopBit { get; set; }
        [Display(Name = "_Model._EquipmentSerial._Parity")]
        public int? Parity { get; set; }
        [Display(Name = "_Model._EquipmentSerial._Threshold")]
        public int? Threshold { get; set; }
        [Display(Name = "_Model._EquipmentSerial._Active")]
        public bool? Active { get; set; }
        [Display(Name = "_Model._EquipmentSerial._TagId")]
        public long? TagId { get; set; }
        [Display(Name = "_Model._EquipmentSerial._TagName")]
        public string TagName { get; set; }
        [Display(Name = "_Model._EquipmentSerial._GlobalPushlish")]
        public bool? GlobalPushlish { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}